package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum SettleTypeEnum
{
    contract_area("contractArea", "承包区"),
    client("client", "客户"),
    salesman("salesman", "业务员");

    private final String code;
    private final String info;

    SettleTypeEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (SettleTypeEnum value : SettleTypeEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
